class CreateCategoryDescriptions < ActiveRecord::Migration
  def self.up
    create_table :category_descriptions do |t|
      t.references :category
      t.text :description
      t.string :language

      t.timestamps
    end
    
    CategoryDescription.create(:category => Category.find_by_name('Clothing'), :description => "Clothing, while often considered a mere necessity, can have many meanings.  It can be an expression of culture and represent rituals, techniques or traditions of old.", :language => "English")
  end

  def self.down
    drop_table :category_descriptions
  end
end